import {
  Button,
  Row,
  Col,
  NavBar,
  Icon,
  DropdownMenu,
  DropdownItem,
  Grid,
  GridItem,
  Image,
  Search,
  Toast,
  Divider,
  List,
  Cell
} from 'vant'


const plugins = [
  Button,
  Row,
  Col,
  NavBar,
  Icon,
  DropdownMenu,
  DropdownItem,
  Grid,
  GridItem,
  Image,
  Search,
  Divider,
  List,
  Cell
]

export const setupAntd = (app) => {
  app.prototype.Toast = Toast
  plugins.forEach((plugin) => {
    app.use(plugin)
  })
}
